<?php
define('BLOCKIP','1.00');

/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

/* ip block */
loadlib("libPreviewbubble");
?>
<style>
div.ipuser
{
	border: 1px solid #CCC;
	margin-bottom: 10px;
	padding: 5px;
	background-color: #C00;

}
.ipuser h3
{
	margin: 0;
	text-transform: uppercase;
	font-size: 10px;
	color: #FFF;
	text-align: center;
}
</style>

<div class='ipuser'>
    <h3>
	ip:<?=$_SERVER["REMOTE_ADDR"]; ?>
	<?php if ((defined('LIBGROUP') && group_getusergroup("webmaster",user_getuser())) || admin_isadmin()){ ?>
	    <a class="previewlink" href='index.php?appname=_admin'>admin</a>
	<?php } ?>
    </h3>
</div>
